<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>webrx</title>
</head>
<body>
<h1>fetch put 请求，本质相当于post</h1>
<script>
    fetch('fput.php?id=99', {method: 'PUT', headers: {token: '13014577033'}, body: JSON.stringify({name: '张三丰'})})
        .then(res => res.json())
        .then(data => {
            console.log(data)
        })
</script>
</body>
</html>